<template>
    <div class="container">
        <Parent v-if="visible"></Parent>
        <button @click="changeVisible">switch</button>
    </div>
</template>
<script lang='ts' setup>
import {ref} from 'vue'
import Parent from './components/Parent.vue'
const visible=ref<boolean>(true)
const changeVisible=()=>{
    visible.value=!visible.value
}

</script>
<style lang='scss' scoped>

</style>